package com.github.jiangxch.rpc.transport;

import java.io.IOException;
import java.net.InetSocketAddress;

/**
 * @author: jiangxch
 * @date: 2021/2/20 10:55
 */
public interface Channel {
    /**
     * 获取通道远程端的地址
     * @return
     */
    InetSocketAddress getRemoteAddress();

    void send(Object message) throws IOException;
}
